Types and Static Semantic Analysis

نویسنده

  • Stephen A. Edwards
چکیده

What is a type? A restriction on the possible interpretations of a segment of memory or other program construct. Useful for two reasons: Runtime optimization: earlier binding leads to fewer runtime decisions. E.g., Addition in C efficient because type of operands known. Error avoidance: prevent programmer from putting round peg in square hole. E.g., In Java, can't open a complex number, only a file. No: many languages operate just fine without them. Assembly languages usually view memory as undifferentiated array of bytes. Operators are typed, registers may be, data is not. Basic idea of stored-program computer is that programs be indistinguishable from data. Everything's a string in Tcl including numbers, lists, etc. Base types match typical processor Typical sizes: 8 16 32 64 char short int long float double Pointers (addresses) int *i; /* i is a pointer to an int */ char **j; /* j is a pointer to a pointer to a char */ Arrays char c[10]; /* c[0] ... c[9] are chars */ double a[10][3][2]; /* array of 10 arrays of 3 arrays of 2 doubles */ Functions /* function of two arguments returning a char */ char foo(int, double); A record is an object with a collection of fields, each with a potentially different type. In C,

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Analysis of disassembled executable codes by abstract interpretation

The aim of this paper is to dene the abstract domain, abstract operator, abstract semantic, the environments and states of disassembled executable codes as well as a way to analysis the disassembled executable codes. Nowadays, static analysis on disassembled code going to grow. Reverse engineering and malware analysis use this technique. Thus, we tried to perform pluralization the requirements ...

متن کامل

Evaluation of “Mosaic 1 Reading”: A Microstructural Approach to Textual Analysis of Pedagogical Materials

To analyze and evaluate textbooks, researchers have either proposed scales and checklists to be filled by teachers and learners or conducted qualitative investigations of the match between SLA theories and textbook activities. This study, however, employs the microstructural approach of schema theory to scrutinize the reading passages of “Mosaic 1 Reading”. To this end, 17 passages of the textb...

متن کامل

Comparative Effectiveness of Semantic Feature Analysis (SFA) and Phonological Components Analysis (PCA) for Anomia Treatment in Persian Speaking Patients With Aphasia

Objectives: Anomia is one of the most common and persistent symptoms of aphasia. Although treatments of anomia usually focus on semantic and/or phonological levels, which both have been demonstrated to be effective, the relationship between the underlying functional deficit in naming and response to a particular treatment approach remains unclear. The aim of this study was to determine the rela...

متن کامل

The Effect of Analysis Methods on the Response of Steel Dual-System Frame Buildings for Seismic Retrofitting

In the present paper, the focus is on the evaluation of steel dual-system frame buildings using four main types of structural analysis (Linear Static, Linear Dynamic, Nonlinear Static and Nonlinear Dynamic Analyses) with regard to "Seismic Rehabilitation Code for Existing Buildings in Iran" (based on FEMA 273 and 356) where the first two authors of the article tend to follow the previous work (...

متن کامل

The Impact of Semantic Mapping Instruction on Iranian EFL Learners’ Reading Comprehension of Expository Texts

The current article was an attempt to investigate the effect of semantic mapping strategy instruction on reading comprehension performance of EFL learners. To this end, thirty homogeneous Iranian intermediate EFL learners attending a language school in Bonab, Iran, were randomly assigned to two groups, one as the experimental and the other as the control. The experimental group received instruc...

متن کامل

Investigating the mechanism of the void's physical-semantic effect on social interactions

The depth of the void concept has extended the range of its effects from philosophy to various sciences and even types of art. In architecture, due to the importance of the spacing effect and architectural components on behavior, void finds a different role that seems to be less addressed in contemporary architecture. If void, regardless of its hidden meaning, is referred to as "empty space," a...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007